package edu.sctu.practice.class02.yangyuran.assign03.assign3_01;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Circle extends GeometricObject {
    public double radius;
    public final double PI = 3.141;
    public double Area;
    public double Preimeter;

    @Override
    public double findArea() {
        Area = radius * radius * PI;
        return Area;
    }

    @Override
    public double findPerimeter() {
        Preimeter = 2 * radius * PI;
        return Preimeter;
    }

    public Circle(String color, double radius) {
        super(color);
        this.radius = radius;
    }

    public String toString() {
        return "圆：";
    }
}
